Skip to content

feat: add isUnlocked action#8573

Merged
hmalik88 merged 2 commits intomainfrom
hm/add-isUnlocked-action
Apr 24, 2026
Merged

feat: add isUnlocked action#8573
hmalik88 merged 2 commits intomainfrom
hm/add-isUnlocked-action

Conversation

@hmalik88
Copy link
Copy Markdown
Contributor

@hmalik88 hmalik88 commented Apr 23, 2026

Explanation

This is needed to handle keyring controller locked scenarios when account creation is mid-flight in the multichain account service. Alternative was to do KeyringController:getState, but I'd rather not pull in the whole state to do a boolean check.

References

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Low risk: adds a new read-only messenger action that returns the existing state.isUnlocked boolean, with no changes to unlock/lock behavior or vault persistence.

Overview
Adds a new KeyringController:isUnlocked messenger action so consumers can query vault lock status without fetching full controller state or holding a controller reference.

This updates the allowed action types/exports and exposes isUnlocked via MESSENGER_EXPOSED_METHODS, with a changelog entry documenting the new capability.

Reviewed by Cursor Bugbot for commit 83fffcb. Bugbot is set up for automated code reviews on this repo. Configure here.

@hmalik88 hmalik88 requested review from a team as code owners April 23, 2026 17:40
@hmalik88 hmalik88 added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit 2c255a6 Apr 24, 2026
358 checks passed
@hmalik88 hmalik88 deleted the hm/add-isUnlocked-action branch April 24, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants